package com.diaohw.module.websocket.controller;

import com.diaohw.module.websocket.obj.dto.MsgDTO;
import com.diaohw.module.websocket.obj.vo.MsgVO;
import com.diaohw.module.websocket.service.MsgService;
import io.swagger.v3.oas.annotations.Operation;
import jakarta.annotation.Resource;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/msg")
public class MsgController {

    @Resource
    private MsgService msgService;



    @PostMapping
    @Operation(summary = "消息发送")
    public MsgVO send(@RequestBody MsgDTO data) {
        return msgService.send(data);
    }



}
